package com.taru.university.service.impl;

import com.taru.university.mapper.PhotoMapper;
import com.taru.university.model.Photo;
import com.taru.university.service.PhotoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PhotoServiceImpl implements PhotoService {
    @Autowired
    PhotoMapper photoMapper;
    @Override
    public Photo queryPhotoById(String articleId) {
        return photoMapper.queryPhotoById(articleId);
    }

    @Override
    public void insertPhoto(Photo photo) {
        photoMapper.insertPhoto(photo);
    }

    @Override
    public void deletePhoto(String photoId) {
        photoMapper.deletePhoto(photoId);
    }
}
